package com.saver.view;

import com.saver.R;
import com.saver.core.persistence.BancoSQLite;
import com.saver.view.adapter.BancoListAdapter;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

public class BancoActivity extends Activity {

	private BancoListAdapter bancoListAdapter;
	private BancoSQLite bancoSQLite;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_banco);
		bancoSQLite = new BancoSQLite (this);
		
		bancoListAdapter = new BancoListAdapter(this, bancoSQLite.buscarTodoActivo());
		
		ListView listView = (ListView) findViewById(R.id.listaBanco);
		listView.setAdapter(bancoListAdapter);
	}
	
}
